//
//  BaseGenealDefine.swift
//  Palmpilot
//
//  Created by 杨伟毅 on 2018/10/19.
//  Copyright © 2018年 杨伟毅. All rights reserved.
//

import Foundation
import UIKit

let isPad = UI_USER_INTERFACE_IDIOM() == .pad

//ISIPAD ? 480 : (
let SCREEN_HEIGHT = UIScreen.main.bounds.height
let SCREEN_width  = UIScreen.main.bounds.width
// 状态栏高度
let StatusHeight = UIApplication.shared.statusBarFrame.size.height
let NavHeight = 44
let TopHeight = StatusHeight + CGFloat(NavHeight)
// iphone X 安全区域高度
let  SafeAreaHeight = Int(StatusHeight) > 20 ?34:0

let topAreHeight  = Int(StatusHeight) > 20 ? 15 : 10
// 底部高度
let BottomHeight = 49 + CGFloat (SafeAreaHeight)

func ZCGRECT (x:CGFloat, y:CGFloat, width:CGFloat, height:CGFloat) -> CGRect{
    return CGRect(x: x, y: y, width: width, height: height)
}
let ppUserder = UserDefaults.standard
let JPushKey = "37ab372f9cafaf7a6a84482b" // key 

struct Cloud {
    static let prefix = "pzpg8cgk" //
    static let id = "PzPG8CGKhs3EBTU1fzx4AbCG-gzGzoHsz" // PzPG8CGKhs3EBTU1fzx4AbCG-gzGzoHsz
    static let key = "dGh0xAOllVQj48PKRvEYd7Uf"
    static let tabName = "palmPilotaSql" // 这里相当于在 Leancloud 的数据库中创建的表名
}



public struct Keys{
    static let contentStr = "content" //
    static let emailStr = "contact" //
    static let aUrl = "palmPilotaUrl" //
    static let aOpen = "palmPilotaOpen" // 大于 0 生效
    static let aPushKey = "palmPilotaPushKey" // 极光 key
}




